<?php 
/**
 *	description:ZMAXWECHAT 控制面板视图文件
 *  author：min.zhang
 *  Email:zhang19min88@163.com
 *	Url:http://www.zmax99.com
 *  copyright:南宁市程序人软件科技有限责任公司保留所有权利
 *  date:2016-04-28
 *  @license GNU General Public License version 3, or later
 *  check date:2016-05-26
 *  checker :min.zhang
 */
 
defined('_JEXEC') or die('Restricted access');
class zmaxwechatViewMain extends JViewLegacy
{
     public function display($tpl = null)	 
	 {
		$this->addToolBar();
		$this->cpInfo = $this->get("ComponentInfo");
		$this->sysInfo = $this->get("SystemInfo");
		if ($this->getLayout() !== 'modal')
		{
			zmaxwechatHelper::addSubmenu('main');
			$this->sidebar = JHtmlSidebar::render();
		}
		parent::display($tpl);
	 }

	protected function addToolBar()
	{
		JToolBarHelper::title(JText::_("COM_ZMAXWECHAT_MAIN_TITLE"));
		JToolBarHelper::preferences('com_zmaxwechat');
	}
	  
}